// 空压系统的 vue 组件
const Air = (resolve) => {
  import('@/deep-views/air/air').then((module) => {
    resolve(module)
  })
}

// 工艺监视
const Monitoring = (resolve) => {
  import('@/deep-views/air/routeView/monitoring').then((module) => {
    resolve(module)
  })
}

// 工艺控制
const Controllers = (resolve) => {
  import('@/deep-views/air/routeView/controllers').then((module) => {
    resolve(module)
  })
}

// 工艺能效
const Energy = (resolve) => {
  import('@/deep-views/air/routeView/energy').then((module) => {
    resolve(module)
  })
}

export default [
  {
    path: '/air',
    // name: 'air',
    component: Air,
    // redirect: '/air/monitoring',
    children: [
      {
        path: '/',
        name: 'monitoring',
        component: Monitoring
      },
      {
        path: 'controllers',
        name: 'controllers',
        component: Controllers
      },
      {
        path: 'energy',
        name: 'energy',
        component: Energy
      }
    ]
  }
]
